package top.liuziqian.shop.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.liuziqian.common.core.domain.BaseEntity;
import top.liuziqian.common.xss.Xss;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 商品供应商表 shop_goods_supplier
 *
 * @author liujian
 */
@ApiModel(value = "GoodsSupplier", description = "商品供应商")
public class GoodsSupplier extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 供应商ID */
    @ApiModelProperty("供应商ID")
    private Long supplierId;

    /** 供应商名称 */
    @ApiModelProperty(value = "供应商名称",required = false)
    private String supplierName;


    /** 供应商编码 */
    @ApiModelProperty(value = "供应商编码",required = false)
    private String supplierCode;

    /** 供应商分类ID */
    @ApiModelProperty(value = "供应商分类ID",required = false)
    private Integer supplierCategoryId;

    /** 供应商分类ID */
    @ApiModelProperty(value = "供应商分类名称",required = false)
    private String supplierCategoryName;

    /** 联系人 */
    @ApiModelProperty(value = "联系人",required = false)
    private String supplierContact;

    /** 联系电话 */
    @ApiModelProperty(value = "联系电话",required = false)
    private String supplierMobile;

    /** 座机号码 */
    @ApiModelProperty(value = "座机号码",required = false)
    private String supplierLandline;

     /** 邮箱 */
    @ApiModelProperty(value = "邮箱",required = false)
    private String supplierEmail;


    /** 省 */
    @ApiModelProperty(value = "省",required = false)
    private Integer supplierProvinceId;

    /** 市 */
    @ApiModelProperty(value = "市",required = false)
    private Integer supplierCityId;

    /** 区 */
    @ApiModelProperty(value = "区",required = false)
    private Integer supplierDistrictId;

    /** 详细地址 */
    @ApiModelProperty(value = "详细地址",required = false)
    private String supplierAddress;

    /** 银行账号 */
    @ApiModelProperty(value = "银行账号",required = false)
    private String supplierBankAccount;

    /** 开户银行 */
    @ApiModelProperty(value = "开户银行",required = false)
    private String supplierBank;

    /** 持卡人姓名 */
    @ApiModelProperty(value = "持卡人姓名",required = false)
    private String supplierCardholderName;

    /** 税务登记号 */
    @ApiModelProperty(value = "税务登记号",required = false)
    private String supplierTaxId;


    /** 排序 */
    @ApiModelProperty("排序")
    private Integer orderNum;

    

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    @Xss(message = "供应商名称不能包含脚本字符")
    @NotBlank(message = "供应商名称不能为空")
    @Size(min = 0, max = 50, message = "供应商名称不能超过50个字符")
    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public Integer getSupplierCategoryId() {
        return supplierCategoryId;
    }

    public void setSupplierCategoryId(Integer supplierCategoryId) {
        this.supplierCategoryId = supplierCategoryId;
    }

    public String getSupplierCategoryName() {
        return supplierCategoryName;
    }

    public void setSupplierCategoryName(String supplierCategoryName) {
        this.supplierCategoryName = supplierCategoryName;
    }

    public String getSupplierContact() {
        return supplierContact;
    }

    public void setSupplierContact(String supplierContact) {
        this.supplierContact = supplierContact;
    }

    public String getSupplierMobile() {
        return supplierMobile;
    }

    public void setSupplierMobile(String supplierMobile) {
        this.supplierMobile = supplierMobile;
    }

    public String getSupplierLandline() {
        return supplierLandline;
    }

    public void setSupplierLandline(String supplierLandline) {
        this.supplierLandline = supplierLandline;
    }

    public String getSupplierEmail() {
        return supplierEmail;
    }

    public void setSupplierEmail(String supplierEmail) {
        this.supplierEmail = supplierEmail;
    }

    public Integer getSupplierProvinceId() {
        return supplierProvinceId;
    }

    public void setSupplierProvinceId(Integer supplierProvinceId) {
        this.supplierProvinceId = supplierProvinceId;
    }

    public Integer getSupplierCityId() {
        return supplierCityId;
    }

    public void setSupplierCityId(Integer supplierCityId) {
        this.supplierCityId = supplierCityId;
    }

    public Integer getSupplierDistrictId() {
        return supplierDistrictId;
    }

    public void setSupplierDistrictId(Integer supplierDistrictId) {
        this.supplierDistrictId = supplierDistrictId;
    }

    public String getSupplierAddress() {
        return supplierAddress;
    }

    public void setSupplierAddress(String supplierAddress) {
        this.supplierAddress = supplierAddress;
    }

    public String getSupplierBankAccount() {
        return supplierBankAccount;
    }

    public void setSupplierBankAccount(String supplierBankAccount) {
        this.supplierBankAccount = supplierBankAccount;
    }

    public String getSupplierBank() {
        return supplierBank;
    }

    public void setSupplierBank(String supplierBank) {
        this.supplierBank = supplierBank;
    }

    public String getSupplierCardholderName() {
        return supplierCardholderName;
    }

    public void setSupplierCardholderName(String supplierCardholderName) {
        this.supplierCardholderName = supplierCardholderName;
    }

    public String getSupplierTaxId() {
        return supplierTaxId;
    }

    public void setSupplierTaxId(String supplierTaxId) {
        this.supplierTaxId = supplierTaxId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return "GoodsSupplier{" +
                "supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", supplierCode='" + supplierCode + '\'' +
                ", supplierCategoryId=" + supplierCategoryId +
                ", supplierCategoryName='" + supplierCategoryName + '\'' +
                ", supplierContact='" + supplierContact + '\'' +
                ", supplierMobile='" + supplierMobile + '\'' +
                ", supplierLandline='" + supplierLandline + '\'' +
                ", supplierEmail='" + supplierEmail + '\'' +
                ", supplierProvinceId=" + supplierProvinceId +
                ", supplierCityId=" + supplierCityId +
                ", supplierDistrictId=" + supplierDistrictId +
                ", supplierAddress='" + supplierAddress + '\'' +
                ", supplierBankAccount='" + supplierBankAccount + '\'' +
                ", supplierBank='" + supplierBank + '\'' +
                ", supplierCardholderName='" + supplierCardholderName + '\'' +
                ", supplierTaxId='" + supplierTaxId + '\'' +
                ", orderNum=" + orderNum +
                '}';
    }
}
